package cc.telecomdigital.tdstock.utils;


public class Top20Stock implements BMPEntityBase
{
	static final public String		TypeName_NetGainers = "NetGainers";
	static final public String		TypeName_NetLosers = "NetLosers";
	static final public String		TypeName_TopTurnover = "TopTurnover";
	static final public String		TypeName_TopVolume = "TopVolume";
	static final public String		TypeName_WarrantNetGainers = "WarrantNetGainers";
	static final public String		TypeName_WarrantNetLosers = "WarrantNetLosers";
	static final public String		TypeName_WarrantTopTurnover = "WarrantTopTurnover";
	static final public String		TypeName_WarrantTopVolume = "WarrantTopVolume";
	
	static final public String		Name			= "Name";

	static final public String		StockCode		= "StockCode";
	static final public String		ChiName			= "ChiName";
	static final public String		SchiName		= "SchiName";
	static final public String		Net				= "Net";
	static final public String		NetPercentage	= "NetPercentage";
	static final public String		Nominal			= "Nominal";
	static final public String		Turnover		= "Turnover";
	static final public String		ShareTraded		= "ShareTraded";

	static final public String[]	FIELD_ITEMS_NET = { StockCode, SchiName, Net, NetPercentage, Nominal };
	static final public String[]	FIELD_ITEMS_TURNOVER = { StockCode, SchiName, ShareTraded, Turnover, Nominal };
	
	static final public String[]	FIELD_ITEMS_ALL	= { StockCode, ChiName, SchiName,
													Net, NetPercentage, Nominal, Turnover, ShareTraded };

	private String					name;

	private String					stockCode;
	private String					chiName;
	private String					schiName;
	private String					net;
	private String					netPercentage;
	private String					nominal;
	private String					turnover;
	private String					shareTraded;
	
	@Override
	public void SetValueByFIELDS_NET(int i, String value)
	{
		switch(i)
		{
			case 0:
				setStockCode(value);
				break;
			case 1:
				setSchiName(value);
				break;
			case 2:
				setNet(value);
				break;
			case 3:
				setNetPercentage(value);
				break;
			case 4:
				setNominal(value);
				break;
		}
	}
	
	@Override
	public void SetValueByFIELDS_TURNOVER(int i, String value)
	{
		switch(i)
		{
			case 0:
				setStockCode(value);
				break;
			case 1:
				setSchiName(value);
				break;
			case 2:
				setShareTraded(value);
				break;
			case 3:
				setTurnover(value);
				break;
			case 4:
				setNominal(value);
				break;
		}
	}
	
	@Override
	public void SetValueByFIELDS(int i, String value)
	{
		switch(i)
		{
			case 0:
				setStockCode(value);
				break;
			case 1:
				setChiName(value);
				break;
			case 2:
				setSchiName(value);
				break;
			case 3:
				setNet(value);
				break;
			case 4:
				setNetPercentage(value);
				break;
			case 5:
				setNominal(value);
				break;
			case 6:
				setTurnover(value);
				break;
			case 7:
				setShareTraded(value);
				break;
		}
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public String getStockCode()
	{
		return stockCode;
	}

	public void setStockCode(String stockCode)
	{
		this.stockCode = stockCode;
	}

	public String getChiName()
	{
		return chiName;
	}

	public void setChiName(String chiName)
	{
		this.chiName = chiName;
	}

	public String getSchiName()
	{
		return schiName;
	}

	public void setSchiName(String schiName)
	{
		this.schiName = schiName;
	}

	public String getNet()
	{
		return net;
	}

	public void setNet(String net)
	{
		this.net = net;
	}

	public String getNetPercentage()
	{
		return netPercentage;
	}

	public void setNetPercentage(String netPercentage)
	{
		this.netPercentage = netPercentage;
	}

	public String getNominal()
	{
		return nominal;
	}

	public void setNominal(String nominal)
	{
		this.nominal = nominal;
	}

	public String getTurnover()
	{
		return turnover;
	}

	public void setTurnover(String turnover)
	{
		this.turnover = turnover;
	}

	public String getShareTraded()
	{
		return shareTraded;
	}

	public void setShareTraded(String shareTraded)
	{
		this.shareTraded = shareTraded;
	}

	@Override
	public void SetValueByFIELDS_COP(int index, String value)
	{
	}

	@Override
	public void SetValueByFIELDS_MONITOR(int index, String value)
	{
	}

	@Override
	public void SetValueByFIELDS_STOCK(int index, String value)
	{
	}

	@Override
	public String GetKey()
	{
		return stockCode;
	}

	@Override
	public void SetKeyValue(String value)
	{
		stockCode = value;
	}
}
